//
//  TestHomeTableViewCell.m
//  Koizora
//
//  Created by dlios on 15-6-11.
//  Copyright (c) 2015年 CupCat. All rights reserved.
//

#import "TestHomeTableViewCell.h"

@implementation TestHomeTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.coverImg1 = [[UIImageView alloc] init];
//        _coverImg1.backgroundColor = [UIColor cyanColor];
        [self addSubview:_coverImg1];
        
        self.testTitle1 = [[UILabel alloc] init];
//        _testTitle1.backgroundColor = [UIColor yellowColor];
        [self addSubview: _testTitle1];
        
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.coverImg1.frame = CGRectMake(self.frame.size.width / 15, 10, self.frame.size.width / 5, self.frame.size.width / 5);
    
    self.testTitle1.frame = CGRectMake(_coverImg1.frame.size.width + _coverImg1.frame.origin.x + 10, 10, self.frame.size.width - _coverImg1.frame.size.width - _coverImg1.frame.origin.x, 50);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
